<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('order/index')}">订单列表</a></li>
		</ul>
		<form class=" well form-inline margin-top-20" method="get" action="{:url('order/index')}">
        	店铺名称:
	        <input type="text" class="form-control" name="name" style="width:150px;" value="{:input('name')}" placeholder="">
	        用户:
	        <input type="text" class="form-control" name="contacts" style="width:150px;" value="{:input('contacts')}" placeholder="">
	        <input type="submit" class="btn btn-primary" value="搜索"/>
	        <a class="btn btn-danger" href="{:url('order/index')}">清空</a>
	    </form>
		<form method="post" class="js-ajax-form margin-top-20" action="{:url('order/listOrder')}">
			<table class="table table-hover table-bordered" id="menus-table">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>订单编号</th>
						<th>店铺名称</th>
						<th>付款用户</th>
						<th>付款金额</th>
						<th>支付方式</th>
						<th>状态</th>
						<th>下单时间</th>
						<th>{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.order_no}</td>
						<td>{$vo.store_name}</td>
						<td>{$vo.user.user_nickname}|{$vo.mobile}</td>
						<td>{$vo.amount}</td>
						<td>{$vo.pay_type_text}</td>
						<td>{$vo.status_text}</td>
						<td>{$vo.create_time}</td>
						<td>
							
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'collapsed'
            });
        });
    });
</script>
</body>
</html>